package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.entity.HistoricalSeismicData;
import com.css.fxfzypg.modules.baseData.queryParams.HistoricalSeismicDataQueryParams;
import com.css.fxfzypg.modules.baseData.vo.HistoricalSeismicDataVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface HistoricalSeismicDataService {
    void updateHistoricalSeismicData(HistoricalSeismicData historicalSeismicData);
    
    void saveHistoricalSeismicData(HistoricalSeismicData historicalSeismicData) throws ParseException;
    
    HistoricalSeismicData getHistoricalSeismicDataById(String id);
    void deleteHistoricalSeismicDatas(List<String> ids);


    void exportExcel(HttpServletResponse response, HistoricalSeismicDataQueryParams queryParams);

    Map<String, Object> getAllHistoricalSeismicData(HistoricalSeismicDataQueryParams queryParams, int curPage, int pageSize);

    String importExcel(MultipartFile file);

    boolean isCouAdmin();

    List<HistoricalSeismicData> judgeHistoricalSeismicData(String taskId);

    Integer countByCounty(String countyName);

    Integer countByCity(String cityName);
    Integer countByProvince(String name);
}
